# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.shortcuts import render
from dao import models

# Create your views here.


def get_bxslider(request):
	# bxslider_queryset = models.BxSlider.objects.filter(status=1) # 结果为queryset集
	# bxslider_list = models.BxSlider.objects.filter(status=1).values_list('name', 'href', 'img')  # 为元组
	bxslider_dict = models.BxSlider.objects.filter(status=1).values('name', 'href', 'img')

	return bxslider_dict
